Repository navigation
Conversation
…indows The UCRT maps ERROR_NO_DATA, which WriteFile reports for a pipe whose read end is closed, to EINVAL. write, writev, sceKernelWrite and sceKernelWritev returned EINVAL where FreeBSD's pipe_write returns EPIPE. (cherry picked from commit 427044c)
10 tasks done
Contributor
|
Windows check, since this is a Windows-only remap. Setup: Windows 11 (26300), WinLibs GCC 15.2.0, Release, head
AI-assisted: yes (Claude Code) |
Contributor
Author
|
Thanks for the Windows control run. The focused test passes with this change and fails with the main source files, which gives useful independent confirmation of the EPIPE path on Windows. |
Collaborator
|
Closing: no title is known to reach this. With the queue at 700+ open PRs, please hold off on new PRs that don't name a title needing the change until it's down. If a title stops on this on current main, reopen with the title ID and the log line. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
What
Map Windows writes to a pipe with no readers to
EPIPEin both the native write path and vectored stdio transfer path. Add a guest regression test for the closed-pipe write behavior.Tested
Linux: built
guest_pipe_closed_write_tests;guest_pipe_closed_writepassed (1/1).python3 tools/check_conventions.py --base upstream/mainandgit diff --check upstream/mainpassed. Windows-specific error mapping was not executed locally.Checklist
main; no other open PR implements the same functions.mdfiles or images added to repository